package com.example.springboot.payDemo;

import org.springframework.stereotype.Component;

/**
 * 微信支付处理器
 */
@Component
public class WeiXinHandler implements PayHandler{
    @Override
    public void AAA(String name) {
             System.out.println("微信支付处理器：" + name);
    }

    /**
     * 将自己注册到工厂中
     */
    @Override
    public void afterPropertiesSet() throws Exception {
         PayFactory.registerPayHandler("微信", this);
    }
}
